package bb.lanxing.model.json;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;
import bb.lanxing.network.BiCiCallback;
import java.util.List;

public class ServerJson {
    private String action;
    private String data;
    @JSONField(name = BiCiCallback.RESPONSE_RES)
    private int result;

    public String getAction() {
        return this.action;
    }

    public void setAction(String str) {
        this.action = str;
    }

    public int getResult() {
        return this.result;
    }

    public void setResult(int i) {
        this.result = i;
    }

    public String getData() {
        return this.data;
    }

    public void setData(String str) {
        this.data = str;
    }

    public <T> List<T> getData(Class<T> cls) {
        return JSON.parseArray(this.data, cls);
    }
}
